package com.djk.enums;

public enum ResultCode {
    SUCCESS(0, "响应成功"),
    FAILURE(-1, "响应失败"),
    USERNAME_NOT_FOUND(-1, "用户名不存在"),
    PASSWORD_INCORRECT(-1, "密码错误"),
    USERNAME_OR_PASSWORD_ERROR(-1, "用户名或密码错误"),
    USER_NOT_LOGGED_IN(-1, "用户未登录"),
    AUDIO_TYPE_ERROR(-1, "不合法的音频文件"),
    REQUEST_PARAMETER_ERROR(-1, "请求参数错误");
    private Integer code;
    private String message;

    ResultCode() {
    }

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
